/*************************************************************************
    > File Name    : WordSegmentation.cc
    > Author       : LiuLei
    > Mail         : 2261459486@qq.com 
    > Created Time : 2022年12月01日 星期四 16时26分11秒
 ************************************************************************/

#include "../../include/server/WordSegmentation.h"

WordSegmentation::WordSegmentation()
: _jieba(DICT_PATH, HMM_PATH, USER_DICT_PATH, IDF_PATH, STOP_WORD_PATH)
{

}

WordSegmentation::~WordSegmentation()
{

}

vector<string> WordSegmentation::operator()(const string &sentence)
{
    vector<string> words;
    _jieba.CutAll(sentence, words);  // FullSegment
    return words;
}
